
GOPATH:=$(shell go env GOPATH)
.PHONY: init
init:
	go get -u github.com/golang/protobuf/proto
	go get -u github.com/golang/protobuf/protoc-gen-go@v1.3.2
	go get github.com/micro/micro/v2/cmd/protoc-gen-micro




.PHONY: proto
proto:
	protoc --go_out=. --micro_out=. ./proto/category/*.proto



.PHONY: build
build:
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o category *.go




.PHONY: docker
docker:
	docker build -t user:latest .
